﻿using System;

namespace ThirdLife.UI.WinForms
{
  public class CommunicationServices : ICommunicationUIModuleServices
  {
    #region ICommunicationUIModuleServices Members

    public event ChatSentHandler ChatSent;
    public event ChatReceivedHandler ChatRecieved;
    public event ChatReceivedHandler SelfChatRecieved;

    //Chat function
    public void Chat(string chatText)
    {
      ChatSent(chatText);
    }

    public void RecievedChat(string name, string message)
    {
      ChatRecieved(name, message);
    }

    public void SelfChat(string name, string message)
    {
      SelfChatRecieved(name, message);
    }

    #endregion
  }
}